
/*
* @ author: karim daher
* @ date: 04-28-2008
* @version: 0.1
 */

class Comment {
    def static STATUS_DELETED = -1
    def static STATUS_PENDING = 0
    def static STATUS_ACTIVE = 1

     Date      dateCreated
     Date      lastUpdated
     String    body
     String    title
     Integer   rank = 0
     Person    createdBy
     Integer   status =  STATUS_ACTIVE
     static belongsTo=[blog:Content]

     static constraints={
         body(blank:false,widget:'textarea', maxSize:500)
         title(blank:false)
     }

}